package annotation.demo1;

import java.lang.reflect.InvocationTargetException;

public class Test {

    public static void main(String[] args) throws IllegalAccessException,
        IllegalArgumentException, InvocationTargetException {
        User user = UserFactory.create();

        System.out.println(user.getName());
        System.out.println(user.getAge());
        user.setName("lxxgreat");

        System.out.println(UserCheck.check(user));
        System.out.println(ValidateProcessor.check(user));
    }
}